#!/usr/bin/python

a,b,c = input("please input three number:").split()
a = int(a)
b = int(b)
c = int(c)

if a > b:
    if a > c:
        if b > c:
            print("%d > %d > %d"%(a,b,c))
        else:
            print("%d > %d > %d"%(a,c,b))
    else:
        print("%d > %d > %d"%(c,a,b))
else:
    if b > c:
        if a > c:            
            print("%d > %d > %d"%(b,a,c))
        else:
            print("%d > %d > %d"%(b,c,a))
    else:
        print("%d > %d > %d"%(c,b,a))

d = [a,b,c]
d.sort()
print("*"*10)
print("%d > %d > %d"%(d[2],d[1],d[0]))

